//
//  FirstPageTableViewCell.m
//  BSLCar
//
//  Created by dlios on 15/5/22.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "FirstPageTableViewCell.h"

@interface FirstPageTableViewCell ()

@end

@implementation FirstPageTableViewCell

- (void)dealloc
{
    [_model release];
    [_picture release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.picture = [[UIImageView alloc] init];
    [self.contentView addSubview:self.picture];
    
    self.nameLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.nameLabel];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.picture.frame = CGRectMake(20, 0, 60, 60);
    self.nameLabel.frame = CGRectMake(80, 10, 100, 50);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
